import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;


public class TimeServer 
{

	public static void main(String[] args) 
	{
		try 
		{
			TimeServerImpl timeServer = new TimeServerImpl();
			Naming.rebind("timeServer", timeServer);
			System.out.println("timeServer started!");
		} catch (RemoteException e) 
		{
			e.printStackTrace();
		} catch (MalformedURLException e) 
		{	
			e.printStackTrace();
		}
	}

}
